package com.mvity.framework.system.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.mvity.framework.common.base.BaseEntity;

/**
 * 角色信息表
 * 
 * @author vity
 * @date 2012-5-10
 * @mail vity.1215@gmail.com
 */
@Entity
@Table(name = "system_role_permissions")
public class SystemRolePermissions extends BaseEntity {

	private static final long serialVersionUID = -6086535342399170761L;

	/**
	 * 关联角色ID
	 */
	@Column(name = "role_id", length = 32, nullable = true)
	private String roleId;

	/**
	 * 关联组件ID
	 */
	@Column(name = "component_id", length = 32, nullable = true)
	private String componentId;

	/**
	 * 是否可见/可读
	 */
	@Column(name = "is_visible", length = 5, nullable = true)
	private String isVisible;

	/**
	 * 是否可操作/可编辑
	 */
	@Column(name = "is_operating", length = 5, nullable = true)
	private String isOperating;

	/**
	 * 是否可分配
	 */
	@Column(name = "is_distribute", length = 5, nullable = true)
	private String isDistribute;

	/**
	 * 返回 roleId 的值
	 * 
	 * @return roleId
	 */
	public String getRoleId() {
		return roleId;
	}

	/**
	 * 设置 roleId 的值
	 * 
	 * @param roleId
	 */
	public void setRoleId(String roleId) {
		this.roleId = roleId;
	}

	/**
	 * 返回 componentId 的值
	 * 
	 * @return componentId
	 */
	public String getComponentId() {
		return componentId;
	}

	/**
	 * 设置 componentId 的值
	 * 
	 * @param componentId
	 */
	public void setComponentId(String componentId) {
		this.componentId = componentId;
	}

	/**
	 * 返回 isVisible 的值
	 * 
	 * @return isVisible
	 */
	public String getIsVisible() {
		return isVisible;
	}

	/**
	 * 设置 isVisible 的值
	 * 
	 * @param isVisible
	 */
	public void setIsVisible(String isVisible) {
		this.isVisible = isVisible;
	}

	/**
	 * 返回 isOperating 的值
	 * 
	 * @return isOperating
	 */
	public String getIsOperating() {
		return isOperating;
	}

	/**
	 * 设置 isOperating 的值
	 * 
	 * @param isOperating
	 */
	public void setIsOperating(String isOperating) {
		this.isOperating = isOperating;
	}

	/**
	 * 返回 isDistribute 的值
	 * 
	 * @return isDistribute
	 */
	public String getIsDistribute() {
		return isDistribute;
	}

	/**
	 * 设置 isDistribute 的值
	 * 
	 * @param isDistribute
	 */
	public void setIsDistribute(String isDistribute) {
		this.isDistribute = isDistribute;
	}

}
